﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DownloadTool.Util
{
    class Date
    {
        private static String _date ;
        public static String date
        {
            get
            {
                if (_date == null)
                {
                    GetDate();
                }
                return _date;
            }
        }

        public static void GetDate()
        {
            string year = DateTime.Today.Year.ToString();
            string mon = DateTime.Today.Month.ToString();
            if (mon.Length < 2)
            {
                mon = "0" + mon;
            }
            string day = DateTime.Today.Day.ToString();

            _date = year +"-"+ mon+"-" + day;

        }

    }
}
